package org.example.simplestart;


import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass
public class SimpleStarterAutoConfiguration {

    @Bean
    public SimpleFactory simpleFactory() {
        return new SimpleFactory();
    }

    @Bean
    public SimpleTool simpleTool(){
        return simpleFactory().getSimpleTool();
    }

}
